package per.yhh.xxxtsj.service;

import io.swagger.models.auth.In;
import per.yhh.xxxtsj.entity.Category;
import per.yhh.xxxtsj.entity.PageResult;
import per.yhh.xxxtsj.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhh
 * @since 2022-04-10
 */
public interface UserService extends IService<User> {
    PageResult<User> getUsersByPageAndKey(String keyword, Integer num, Integer size);
    boolean addUser(User user);
    User getUser(Integer uid);
    User getUserByAccount(String  account);
    boolean setPermission(Integer uid,Integer value);
    User login(String account,String password);

}
